package com.unitd.base.module.master.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.unitd.base.frame.plugin.module.model.MybatisBaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 用户登录Token信息表
 *
 * @author Hudan
 * @version 1.0
 * @filename TokenPO.java
 * @copyright www.unitd.com
 * @date 2020-07-09
 */ 
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "shop_token")
public class TokenPO extends MybatisBaseEntity {

    /** 登录用户ID */
    @TableField("user_id")
    private Long userId;
    /** 用户token */
    private String token;
    /** 过期时间 */
    @TableField("expire_time")
    private Date expireTime;
}